<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/js/jquery-1.8.3.min.js}"></script>
    <!--    <script src="/static/js/jquery-1.8.3.min.js"></script>-->
    <script>
        function sendAction(parameters) {
            $.ajax({
                url: "http://192.168.5.139/log",
                data: JSON.stringify(parameters),
                async: true,
                cache: false,
                type: "POST",
                success: function (result) {
                    console.log(result);
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    console.log("error--------------------------")
                }
            });
        }


        $(function () {
            $("#click").click(function () {
                sendAction({
                    "userId": "1001011",
                    "action": "click",
                    "jobCode": "5001055",
                    "time": (new Date()).getTime()
                })
            });
            $("#job_collect").click(function () {
                sendAction({
                    "userId": "1001011",
                    "action": "job_collect",
                    "jobCode": "5001055",
                    "time": (new Date()).getTime()
                })
            });
            $("#cv_send").click(function () {
                sendAction({
                    "userId": "1001011",
                    "action": "cv_send",
                    "jobCode": "5001055",
                    "time": (new Date()).getTime()
                })
            });
            $("#cv_upload").click(function () {
                sendAction({
                    "userId": "1001011",
                    "action": "cv_upload",
                    "jobCode": "5001055",
                    "time": (new Date()).getTime()
                })
            });
        });

    </script>
    <style>
        .position_list_item {
            list-style: none;
        }
    </style>
</head>
<body>
<div>
    <ul>
        <li class="position_list_item">

            <div class="pli_top">
                <div class="clearfix pli_top_l">
                    <div class="position_name fl  ">
                        <h2 class="dib clearfix">
                            <a href="https://www.lagou.com/jobs/8253401.html" target="_blank"
                               class="position_link fl wordCut" data-index="0" title="Python工程师"
                               data-lg-webtj-_show_id="0b0af5f24c354cd1b53622fe9eabf076"
                               data-lg-webtj-_search_type="recommendation" data-lg-webtj-_content_type="jd"
                               data-lg-tj-id="rz00"
                               data-lg-webtj-added_props="{&quot;seq&quot;:1,&quot;URL&quot;:&quot;https://www.lagou.com/jobs/8253401.html&quot;,&quot;refer&quot;:&quot;recommendation&quot;}"
                               data-lg-tj-no="0001" data-lg-tj-cid="8253401" data-lg-tj-abt="default|0">Python工程师</a>
                        </h2>
                    </div>
                    <span class="salary fr">20k-30k·15薪</span>
                </div>

            </div>
            <div>
                <ul>
                    <li class="position_list_item">
                        <button id="click">点击</button>
                    </li>
                    <li class="position_list_item">
                        <button id="job_collect">收藏</button>
                    </li>
                    <li class="position_list_item">
                        <button id="cv_send">发送简历</button>
                    </li>
                    <li class="position_list_item">
                        <button id="cv_upload">上传简历</button>
                    </li>
                </ul>
            </div>

        </li>
    </ul>
</div>
</body>
</html>